MercadoPago\Woocommerce\Gateways\AbstractGateway B

Total Complexity 97
Dependencies 13
Dependents 19
Total lines 1,127
Lines of code 643
Logical lines of code 201
Comment lines 262
Methods 50
Properties 12

Methods 50

Method Rating Maintainability Complexity Lines of code
getCredentialExpiredNotice()
A
47 7 35
process_payment()
S
46 6 40
processReturnFail()
S
47 6 35
update_option()
S
55 5 20
process_refund()
S
53 3 23
loadMelidataStoreScripts()
S
56 3 20
registerCheckoutScripts()
S
47 1 46
getAmountAndCurrency()
S
59 3 14
formFieldsHeaderSection()
S
46 1 42
formFieldsFooterSection()
S
47 1 42
getAmount()
S
61 3 12
setCheckoutSessionDataOnSessionHelperByOrderId()
S
62 3 11
getHomologValidateNoticeOrHidden()
S
55 2 21
getCredentialValidationNoticeOrHidden()
S
55 2 21
__construct()
S
58 2 16
processBlocksCheckoutData()
S
63 3 10
payment_scripts()
S
69 3 8
canAdminLoadScriptsAndStyles()
S
73 3 5
getFeeTitle()
S
61 2 13
missingCredentialsFormFieldNotice()
S
57 1 17
saveOrderPaymentsId()
S
65 2 9
init_form_fields()
S
74 2 5
webhook()
S
65 2 9
canCheckoutLoadScriptsAndStyles()
S
75 2 4
loadResearchComponent()
S
60 1 15
registerDiscountAndCommissionFeesOnCart()
S
75 2 5
getActionableValue()
S
68 2 7
handleWithRejectPayment()
S
68 2 7
generate_mp_actionable_input_html()
S
60 1 14
getCheckoutName()
S
100 1 0
formFields()
S
70 1 7
formFieldsMainSection()
S
100 1 0
isMissingCredentials()
S
72 1 6
registerAdminScripts()
S
66 1 10
payment_fields()
S
91 1 2
validate_fields()
S
82 1 3
proccessPaymentInternal()
S
100 1 0
isAvailable()
S
81 1 3
getFeeText()
S
74 1 4
generate_mp_toggle_switch_html()
S
64 1 10
generate_mp_checkbox_list_html()
S
66 1 9
generate_mp_config_title_html()
S
65 1 10
generate_mp_card_info_html()
S
65 1 10
generate_mp_preview_html()
S
65 1 10
generate_mp_support_link_html()
S
65 1 10
generate_mp_tooltip_selection_html()
S
65 1 10
getRejectedPaymentErrorMessage()
S
75 1 4
get_connection_url()
S
80 1 3
get_settings_url()
S
79 1 3
getEnabled()
S
79 1 3